﻿using RPAVIEW.util;
using SUNRPA.CONTROLS.IMPL.domain.constant;
using SUNRPA.CONTROLS.IMPL.domain.flowItemParam;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using System.Windows.Controls;

namespace RPAVIEW.views.EditPage.flows.DeadLoopN {
    /// <summary>
    /// Input.xaml 的交互逻辑
    /// </summary>
    public partial class Output:BaseParamViewAction{
        public Output() {
            InitializeComponent();
        }

        public override void UpdateSource() {
            DeadLoopNParam param = ParamUtil.GetCurrentParam<DeadLoopNParam>();
            ParamUtil.DefineVar(DefaultContents.RUNNING_PARAM, this.loopIndexName.Text, typeof(IntModel), param.LoopIndexName);
            this.loopIndexName.GetBindingExpression(TextBox.TextProperty).UpdateSource();
        }
    }
}
